import { createApp } from 'vue'

import App from './App.vue'
import "uno.css";
import "@/assets/css/coment.css";
// 已经vite配置全局引入
// import "@/assets/css/my_style.scss";
// index cdn引入
// import "@/assets/css/iconfont.css";
import ElementPlus from "element-plus";
// import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn";

// 引入状态管理
import { setupStore } from "@/store";

import VueVideoPlayer from "@videojs-player/vue";
import "video.js/dist/video-js.css";
import { router } from "@/router";
// 导入全局的svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon.vue'; // 引入 SvgIcon 组件


// 全局注册 SvgIcon 组件
// import { createPinia } from "pinia";
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App);
// const pinia =  createPinia()
// pinia.use(piniaPluginPersistedstate);
// app.use(pinia);

app.component('SvgIcon', SvgIcon);
setupStore(app);
app.use(VueVideoPlayer);
app.use(router).use(ElementPlus, { locale: zhCn }).mount("#app");
